#include <iostream>
#include <unistd.h>
using namespace std;

int main()
{
    char *args[] = {"/bin/ls",NULL};
    cout<<"系统分配的进程号为:"<<getpid();
    if(execve("/bin/ls",args,NULL)<0)
        cout<<"创建进程出错"<<endl;
    return 0;
}
